import React, { PureComponent } from 'react';

class Text extends PureComponent {
    render() {
        return (
            <div className='text'>
                <p className='price'>
                    活动价¥<span>{this.props.price}</span>
                </p>
                <p className='name'>
                    {this.props.name}
                </p>
                <p className='description'>
                    {this.props.description}
                </p>
            </div>
        );
    }
}

export default Text;